24337400d3c40edfe7ea324d25480fde52952dba,plugin_ide.core/src-lang/melnorme/lang/ide/core/operations/ToolMarkersHelper.java,ToolMarkersHelper,addErrorMarkers,#ToolSourceMessage#Location#,84
Before Change
public void addErrorMarkers(ToolSourceMessage toolMessage, Location rootPath) throws CoreException {
Location loc = rootPath.resolve(toolMessage.getFilePath()); // Absolute paths will remain unchanged.
IFile[] files = ResourceUtils.getWorkspaceRoot().findFilesForLocationURI(loc.toUri());
for(IFile file : files) {
addErrorMarker(file, toolMessage, getMarkerType());
}
}
After Change
public void addErrorMarkers(ToolSourceMessage toolMessage, Location rootPath) throws CoreException {
Location loc = rootPath.resolve(toolMessage.getFilePath()); // Absolute paths will remain unchanged.
ArrayList2<IResource> resources = new ArrayList2<>();
resources.addElements(ResourceUtils.getWorkspaceRoot().findFilesForLocationURI(loc.toUri()));
resources.addElements(ResourceUtils.getWorkspaceRoot().findContainersForLocationURI(loc.toUri()));
for(IResource resource : resources) {
addErrorMarker(resource, toolMessage, getMarkerType());
}
}